<?php
session_start();
define('APP_VERSION_LEBANG','v1.0');
require 'class/ValidateCode.class.php';

//配置参数
$pars = array(
	'width' => '120',
	'height' => '44',
	'font' => 'font/elephant.ttf'
);

//开始生成验证码
$code = new ValidateCode();
$code->parameter($pars);
$code->doimg();

//保存到SESSION
$_SESSION['lebang_vcode'] = $code->getCode();
